package syf;

import java.io.*;

public class byt {
    private static String pathsend="src/main/resources/Bytetest.txt";
    private static String pathrece="src/main/resources/rece.txt";
    public static void main(String[] args) throws IOException {
        BufferedOutputStream bo=null;
        BufferedInputStream bi=null;
        bo= new BufferedOutputStream(new FileOutputStream(pathrece),16);
        bi=new BufferedInputStream(new FileInputStream(pathsend),16);
        byte[] bytes=new byte[100];
        byte b= (byte) 0x81;
        int len=0;
        while ((len=bi.read(bytes))!=-1){
            bo.write(0x80);
            bo.flush();
        }
        bo.close();
    }
}
